<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="../header.jsp">
<jsp:param value="部门管理>>部门更新" name="title"/>
</jsp:include>
<script type="text/javascript">
$(function() {
	$('.dropdown')
	  .dropdown({
	    // 你可以使用任何过渡
	    transition: 'drop'
	  });
});
</script>
</head>
<body>
<div class = "gps">
<a class = "home" href="staff?method=forward">首页</a>
<span> > </span>
<a href="dept/manager">部门管理</a>
</div>
<div class = "update">
<span class = "text">更新部门</span>
<div class="teacher-content">
		<form  method="post" class="ui form create-form">
		  <input type="hidden" name="id" value="${d.deptId}">		   
		  <div class="field">
		    <label>部门名称</label>
		    <input type="text" name="deptName" value="${d.deptName }" required="required">${param.deptName }
		  </div>
		   <div class="field">
		    <label>部门经理</label>
		    <input type="text" name="deptManager" value="${d.deptManager}">${param.deptManager }
		  </div>
		   <div class="field">
		    <label>上属部门</label>
		 <select  name="addDeptParent">
		<option selected="selected" value="${d.deptParent}">${d.deptParent}
		<c:forEach items="${allDeptList}" var="dept">
			<option value = "${dept.deptName }">${dept.deptName }
		</c:forEach>
		</select>
		  </div>	
		  <button class="ui button" type="submit">
			保存
		  </button>
		  <span>${error}</span>
		</form>
	</div>
</div>
</body>
</html>